// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入ElementUI
import ElementUI from 'element-ui'
//引入ElementUI样式
import 'element-ui/lib/theme-chalk/index.css'
//引入axios
import axios from 'axios'
//引入Echarts
import * as echarts from 'echarts'
//引入markdown
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
//该插件能够将markdown的内容转换为HTML格式渲染出来
import marked from 'marked'
// 引入代码高亮插件
import hljs from 'highlight.js'
import 'highlight.js/styles/atom-one-dark.css'
// 导入本地markdown样式
//import '../../styles/markdown.css'

//样式引入
import 'mapbox-gl/dist/mapbox-gl.css'
import mapBoxGl from 'mapbox-gl'
Vue.prototype.mbgl = mapBoxGl
import * as turf from '@turf/turf'
Vue.prototype.mturf=turf
//注册组件
Vue.prototype.$echarts = echarts
Vue.prototype.$http=axios
// Vue.prototype.$http.defaults.baseURL = '/api'
Vue.prototype.HOST = '/api'
// 将Markdown源内容转换为HTML
// this.content = marked(source)

Vue.use(mavonEditor)
Vue.use(ElementUI);
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
